Repository navigation
ci(id): guard crash-gate PR partition against uncovered ignored tests (#1635) - #1647
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b0a3031af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ignored && /^#\[/ { next } | ||
| ignored && /^\/\/\// { next } | ||
| ignored && /^fn [A-Za-z0-9_]+/ { |
There was a problem hiding this comment.
Recognize indented ignored tests in nested modules
When an ignored crash test is inside a nested module, its normally indented fn declaration does not match this column-zero regex, so the parser silently discards it. This layout already exists in pkgs/id/tests/crash/faultfs.rs: adding #[ignore] to its unsynced_writes_are_dropped_at_a_power_cut test in a temporary fixture leaves the guard passing with the same three covered names, although that test matches none of the split filters and would lose PR coverage. The nonempty-input check cannot detect this because the other ignored tests still parse. Accept leading whitespace on function and intervening attribute/doc lines so nested tests participate in the coverage check.
Useful? React with 👍 / 👎.
Fixes #1635.
PR #1310 split the aggregate
crash-gateinto four PR checks partitioned by test-name filter; an#[ignore]d crash test whose name contains none of the three split filters would silently run in no PR check. This adds the source-level guard the triage settled:.github/scripts/check-crash-gate-coverage.sh(no cargo build): enumerates#[ignore]d test names inpkgs/id/tests/crash/*.rs, subtracts the named corpus writers (write_corpus,write_corpus_identity), extracts the split filters from thecrash-gate-sweep/-control/-ingestrecipes inpkgs/id/justfile, and fails naming each uncovered test. Parse drift (no filters / no ignored tests found) also fails — a guard that passes on empty input is the failure this prevents.idworkflow's guard job alongsidecheck-id-pr-checks.sh(new step + the script added to both push/PR path filters).check-id-pr-checks.sh's header and the partition comment block inpkgs/id/justfilenow reference the checked invariant.Acceptance proof (laptop, per the packet):
crash-gate partition covers all 3 #[ignore]d gate tests (2 corpus writers excluded: write_corpus write_corpus_identity)— exit 0.#[ignore]ddummy_uncovered_gate_probeappended tostore.rs: exit 1,::error::names the test and the three filters.Need help on this PR? Tag
@codesmith-botwith what you need.